package com.chzc.db;

import com.chzc.pojo.Admin;
import com.chzc.pojo.Student;

import java.util.ArrayList;
import java.util.List;

/**
 * @author CV大魔王
 * @Description 模拟数据库存储
 * @date 2021/3/26 20:07
 */
public class SchoolRollDataBase {

    public static List<Student> studentList = new ArrayList<>();
    public static List<Admin> adminList = new ArrayList<>();

    /**
     * 初始化用户信息
     */
    public static void initData(){
        studentList.add(new Student("stu1","123456","学生1","男",18));
        studentList.add(new Student("stu2","123456","学生2","女",21));
        studentList.add(new Student("stu3","123456","学生3","女",17));
        studentList.add(new Student("stu4","123456","学生4","男",19));
        studentList.add(new Student("stu5","123456","学生5","女",16));


        adminList.add(new Admin("admin1","123456","管理员"));
        adminList.add(new Admin("admin2","123456","管理员"));
        adminList.add(new Admin("admin3","123456","管理员"));
        adminList.add(new Admin("admin4","123456","管理员"));
        adminList.add(new Admin("admin","123456","超级管理员"));
    }
}
